<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Edit Conversation Label</title>
</head>
<body>
<!--        Header         -->
<jsp:include page="scripts/headerEdit.jsp" >
    <jsp:param name="title" value="Edit Conversation Labels" />
</jsp:include>
<!--        List           -->
<div class="list">
<form method="post" action="enterclabel.html">
<table>
	<tr>
		<th align="left">Label</th>
		<th align="left">Description</th>
	</tr>
	<tr>
		<td><spring:bind path="clabel.label">
			<input name='<c:out value="${status.expression}"/>'
				value='<c:out value="${status.value}"/>' type="text" size="12"
				maxlength="16">
		</spring:bind></td>
		<td><spring:bind path="clabel.description">
			<input name='<c:out value="${status.expression}"/>'
				value='<c:out value="${status.value}"/>' type="text" size="30"
				maxlength="128">
		</spring:bind></td>
	</tr>
</table>
<p align="center"><input name="save" value="Save" type="submit">
<input name="cancel" type="button" value="Cancel"
	onClick="javascript:window.location='enterclabel.html'"></p>
</form>
</div>
<div class="list">
<h3>Current Conversation Labels</h3>
<table>
	<tr>
		<th align="left">Label</th>
		<th align="left">Description</th>
	</tr>
	<c:forEach items="${clabels}" var="clabel">
		<tr>
			<td><c:out value="${clabel.label}" /></td>
			<td><c:out value="${clabel.description}" /></td>
		</tr>
	</c:forEach>
</table>
</div>
</body>
</html>

